package com.xbongbong.saas.model;

import java.util.List;
import java.util.Map;
import com.xbongbong.saas.domain.entity.PurchaseBalanceEntity;


/**
 * @author bomfish
 */
public interface PurchaseBalanceModel {
   Long insert(PurchaseBalanceEntity entity);

   void insertBatch(List<PurchaseBalanceEntity> list);

   List<PurchaseBalanceEntity> findEntitys(Map<String, Object> param);

   Integer getEntitysCount(Map<String, Object> param);

   void update(PurchaseBalanceEntity entity);

   PurchaseBalanceEntity getByKey(Long key, String corpid);

   // 批量更新del
   void batchUpdateDel(String corpid,List<String> onlyKey ,Integer del);

   // 根据onlyKey批量获取数据
   List<PurchaseBalanceEntity> findByOnlyKeys(String corpid,List<String> onlyKeyList);

   // 批量更新
    void updateBatch(List<PurchaseBalanceEntity> purchaseBalanceEntityList,String corpid);

    PurchaseBalanceEntity getByOnlyKey(String corpid,String onlyKey);
}
